package com.fengye.cloud.reactive.service.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Mono;

/**
 *
 * @author sky
 * @date 2021年06月02日 10:28 上午
 */
@RestController
@RequestMapping("/v1/account")
public class AccountController {

    @GetMapping("{id}")
    public Mono<String> getAccountById(@PathVariable Integer id) {
        return Mono.just(id + "1");
    }
}
